package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import model.Model;

public class MenuListener implements ActionListener {

	private Model model = new Model();
	
	@Override
	public void actionPerformed(ActionEvent e) {
		
		//Capturamos el comando accionado por el usuario
        String command = e.getActionCommand();
        
        if (command.equals("Conectar")) {
        	model.createServer(1234);
        }
		
        if (command.equals("Desconectar")) {
        	model.closeServer();
        }
        
        if (command.equals("Salir")) {
        	
        }
	}


}
